package com.project.internship.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.internship.entity.Audit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-04-20
 */
@Repository
public interface AuditMapper extends BaseMapper<Audit> {

    IPage<Audit> getDeclare(Page<Audit> page, @Param("name") String name, @Param("keyword") String keyword);

    IPage<Audit> getAudit(Page<Audit> page, @Param("status") Integer status, @Param("keyword") String keyword);
}
